<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>邀请列表</title>
<link rel="stylesheet" type="text/css" href="../img/base.css">
<script language="javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" src="../js/jquery.js"></script>
<script>
function mobile_send()
{
	$("#action").val('send_condition');
	return true;
}
	
</script>
</head>
<body leftmargin="8" topmargin="8" background='../img/allbg.gif'>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td align='center' valign='top'>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
                
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
				<tr>
    				<td height="26" background="../img/tbg.gif">
                    <form action="invite_list.php" method="post">
    					<table width="98%" border="0" cellspacing="2" cellpadding="0">
     						<tr>
		<td height="28" background='../img/tbg.gif'>
	   		<table width="100%" border="0" cellspacing="0" cellpadding="0">
            	<tr>
                	<td width="80">手机号码：</td>
                    <td><input type="text" id="mobile" name="mobile" value="<{$mobile}>" /></td>
                    <td width="80">激活状态：</td>
                    <td>
                    	<select name="is_active" id="is_active">
                        	<{if $is_active=='' || $is_active==-1 }>selected="selected"<{/if}>>全部<option value="-1" <{if $is_active=='' || $is_active==-1 }>selected="selected"<{/if}>>全部</option>
                            <{if $is_active!='' && $is_active==0 }>selected="selected"<{/if}>>未激活<option value="0" <{if $is_active!='' && $is_active==0 }>selected="selected"<{/if}>>未激活</option>
                            <{if $is_active==1 }>selected="selected"<{/if}>>已激活<option value="1" <{if $is_active==1 }>selected="selected"<{/if}>>已激活</option>
                        </select>
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                	<td>添加日期：</td>
                    <td>
                    	<input type="text" id="add_start_date" name="add_start_date" value="<{$add_start_date}>" onClick="WdatePicker()" /> - <input type="text" id="add_end_date" name="add_end_date" value="<{$add_end_date}>" onClick="WdatePicker()" />
                    </td>
                    <td>激活日期：</td>
                    <td><input type="text" id="active_start_date" name="active_start_date" value="<{$active_start_date}>" onClick="WdatePicker()" /> - <input type="text" id="active_end_date" name="active_end_date" value="<{$active_end_date}>" onClick="WdatePicker()" /></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                
                <tr>
                    <td width="80">发送状态：</td>
                    <td>
                    	<select name="is_send" id="is_send">
                        	<{if $is_send=='' || $is_send==-1 }>selected="selected"<{/if}>>全部<option value="-1" <{if $is_send=='' || $is_send==-1 }>selected="selected"<{/if}>>全部</option>
                            <{if $is_send!='' && $is_send==0 }>selected="selected"<{/if}>>未发送<option value="0" <{if $is_send!='' && $is_send==0 }>selected="selected"<{/if}>>未发送</option>
                            <{if $is_send==1 }>selected="selected"<{/if}>>已发送<option value="1" <{if $is_send==1 }>selected="selected"<{/if}>>已发送</option>
                        </select>
                    </td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                
            </table>
	   	</td>

	</tr>
                            <tr>
                            	<td colspan="4" align="center">
                                	<input type="hidden" name="op" id="op" value="search" />
                                    <input type="hidden" name="action" id="action" value="" />
                                    <input type="hidden" name="count" value="<{$count}>" />
                                	<input type='submit' class="coolbg np" value=' 搜 索 ' />&nbsp;&nbsp;
                                    <input type='submit' class="coolbg np" onClick="return mobile_send();" value=' 发送短信 ' />&nbsp;&nbsp;
                                </td>
                            </tr>
    					</table>
                    </form>
    				</td>
    			</tr>
            </table>
            
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr bgcolor="#FFFFFF">
                	<td height="4"></td>
                </tr>
			</table>
			<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="8" background="../img/tbg.gif">邀请列表</td>
				</tr>
                <tr align="center" bgcolor="#FAFAF1" height="22">
                    <td>手机号码</td>
                    <td>激活码</td>
                    <td>激活状态</td>
                    <td>激活时间</td>
                    <td>激活短信</td>
                    <!--<td>验证码</td>
                    <td>验证码发送时间</td>-->
                    <td>添加时间</td>
                    <td>操作</td>
                </tr>
                <{foreach item=invite from=$invite_list}>
                <tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#f4fbf4';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                    <td><{$invite.mobile}></td>
                    <td><{$invite.active_code}></td>
                    <td><{$invite.is_active_str}></td>
                    <td><{$invite.active_time_str}></td>
                    <td>
                    	<{if $invite.is_send eq 1}>
                        	已发送
                        <{else}>
                        	未发送
                        <{/if}>
                    </td>
                    <!--<td><{$invite.verify_code}></td>
                    <td><{$invite.verify_time_str}></td>-->
                    <td><{$invite.add_time_str}></td>
                    <td>
                    <input type="button" <{if $invite.is_active eq 1}> disabled  <{/if}> value="发送短信" onClick="javascript:location.href='invite_list.php?op=onesend_con&one_mob=<{$invite.mobile}>'" />
                    </td>
                </tr>
                <{/foreach}>
                <tr bgcolor="#FAFAF1">
                	<td height="24" colspan="8"><{$page_str}></td>
                </tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                	<td height="4"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                	<td height="26"></td>
                </tr>
				<tr>
					<td height="4"></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</body>
</html>